xl: Apply CLOEXEC to the restore_fd.
authorAnthony Perard <anthony.perard@citrix.com>
Thu, 1 Dec 2011 16:28:51 +0000 (16:28 +0000)
committerAnthony Perard <anthony.perard@citrix.com>
Thu, 1 Dec 2011 16:28:51 +0000 (16:28 +0000)
commit943730ecffa8807ebb5c47f01a686e021f3c0390
tree66e5b8bea2d66a8d16d90024f8e05ce7641bb86b
parentca3a3fefd27cc398b5a08c865d7cb16628f388fb
xl: Apply CLOEXEC to the restore_fd.

At restore time, the file descriptor opened on the migration state file is
still open in the device model. Let's apply FD_CLOEXEC to it.

This patch provides libxl_fd_set_cloexec to users of libxl, instead of keeping
this function internal.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl.h
tools/libxl/libxl_internal.c
tools/libxl/libxl_internal.h
tools/libxl/libxl_qmp.c
tools/libxl/xl_cmdimpl.c